import java.util.Scanner;

//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        if (num >= 0 && num <= 9){
            System.out.println("垂髫之年");
        }else if (num >= 10 && num <= 19) {
            System.out.println("志学之年");
        }else if (num >= 20 && num <= 29) {
            System.out.println("弱冠之年");
        }else if (num >= 30 && num <= 39) {
            System.out.println("而立之年");
        }else if (num >= 40 && num <= 49) {
            System.out.println("不惑之年");
        }else if (num >= 50 && num <= 59) {
            System.out.println("知命之年");
        }else if (num >= 60 && num <= 69) {
            System.out.println("花甲之年");
        }else if (num >= 70 && num <= 79) {
            System.out.println("古稀之年");
        }else if (num >= 80 && num <= 89) {
            System.out.println("杖朝之年");
        }else if (num >= 90 && num <= 99) {
            System.out.println("耄耋之年");
        }
    }
}